// 启用插件 babel-plugin-transform-runtime 后，Babel 就会使用 babel-runtime 下的工具函数
import 'babel-polyfill'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import base from './common/js/base'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import 'vue-ydui/dist/ydui.base.css'
import 'vue-ydui/dist/ydui.flexible.js'
import './common/font/iconfont.css'
import './common/style/index.scss'

import FastClick from 'fastclick'
FastClick.attach(document.body)

Vue.use(base)
Vue.use(MintUI)

try {
  // 检查是否开启本地存储
  sessionStorage.setItem('CHECK_STORAGE', '1')
} catch (e) {
  console.error(e)
  Vue.prototype.$message.alert('您可能使用了无痕模式或者禁用了cookie，这将会导致应用异常')
}

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
